package com.aishua.fire.jpa;


import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import com.aishua.fire.jpa.entity.OneLevelMenu;

import java.lang.Long;

/**
 * jpa使用
 * @author Administrator
 *
 */
public interface OneLevelMenuDao extends JpaRepository<OneLevelMenu, Long>,JpaSpecificationExecutor<OneLevelMenu> {

	@Transactional
	@Query(value="select t from OneLevelMenu t where t.oneLevelMenu = ?1")
	OneLevelMenu findByOneLevelMenu(String totalModule);
	
}
